import Home from '@/views/pages/home'
import demoRouter from './group/demo'
import systemRouter from './group/system'

const base = [
  {
    path: '/',
    name: 'home',
    component: Home,
    children: [
      {
        path: '/index',
        name: 'index',
        component: () => import('@/views/pages/index')
      },
      {
        path: '/account',
        name: 'account',
        component: () => import('@/views/pages/weixin/account')
      },
      // 统一思想认识 填报
      {
        path: '/IdeologicalCognitionf',
        name: 'IdeologicalCognitionf',
        component: () => import('@/views/pages/IdeologicalCognition/filling.vue')
      },
      // 统一思想认识 查看
      {
        path: '/IdeologicalCognitions',
        name: 'IdeologicalCognitions',
        component: () => import('@/views/pages/IdeologicalCognition/see.vue')
      },
      // 搭建组织机构 填报
      {
        path: '/organizationf',
        name: 'organizationf',
        component: () => import('@/views/pages/organization/filling.vue')
      },
      // 搭建组织机构 查看
      {
        path: '/organizations',
        name: 'organizations',
        component: () => import('@/views/pages/organization/see.vue')
      },
      // 梳理业务流程 填报
      {
        path: '/operationFlowf',
        name: 'operationFlowf',
        component: () => import('@/views/pages/operationFlow/filling.vue')
      },
      // 梳理业务流程 查看
      {
        path: '/operationFlows',
        name: 'operationFlows',
        component: () => import('@/views/pages/operationFlow/see.vue')
      },
      // 找问题堵漏洞 填报
      {
        path: '/problemVulnerabilityf',
        name: 'problemVulnerabilityf',
        component: () => import('@/views/pages/problemVulnerability/filling.vue')
      },
      // 找问题堵漏洞 查看
      {
        path: '/problemVulnerabilitys',
        name: 'problemVulnerabilitys',
        component: () => import('@/views/pages/problemVulnerability/see.vue')
      },
      // 主页
      {
        path: '/homePage',
        name: 'homePage',
        component: () => import('@/views/pages/homePage/index.vue')
      },
      // 权责清单问题
      {
        path: '/responsibilities',
        name: 'responsibilities',
        component: () => import('@/views/pages/problemVulnerability/responsibilities.vue')
      },
      // 其他问题
      {
        path: '/otherAspects',
        name: 'otherAspects',
        component: () => import('@/views/pages/problemVulnerability/otherAspects.vue')
      },
      // 数据采集填报
      {
        path: '/dataAcquisitionf',
        name: 'dataAcquisitionf',
        component: () => import('@/views/pages/dataAcquisition/filling.vue')
      },
      // 数据采集查看
      {
        path: '/dataAcquisitions',
        name: 'dataAcquisitions',
        component: () => import('@/views/pages/dataAcquisition/see.vue')
      },
      // 纪检组情况填报
      {
        path: '/disciplineInspectionf',
        name: 'disciplineInspectionf',
        component: () => import('@/views/pages/disciplineInspection/filling.vue')
      },
      // 纪检组情况查看
      {
        path: '/disciplineInspections',
        name: 'disciplineInspections',
        component: () => import('@/views/pages/disciplineInspection/see.vue')
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '@/views/pages/login')
  }
]
base[0].children.push.apply(base[0].children, demoRouter)
base[0].children.push.apply(base[0].children, systemRouter)
export default base
